<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
    export default {
        name: "app",
        mounted() {
            // 提醒用户开启消息通知
            if(window.Notification) {
                if (Notification.permission == "granted") {
                } else if (Notification.permission != "denied") {
                    Notification.requestPermission(function (permission) {
                    });
                }
            }
        }
    };
</script>
<style lang="scss" scoped>
  #app {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #F5F5F5;
  }
</style>
